import os
from waitress import serve
from db_config_project.wsgi import application

# 如果您的settings.py不在标准位置，可能需要下面这行
# os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'your_project_name.settings')

# waitress服务器会监听在8000端口
print("Starting server at http://127.0.0.1:8000")
serve(application, host='127.0.0.1', port=8000)